﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyPwd.aspx.cs" Inherits="School.Admin.Admin.MyPwd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {font-size: 12px}
.STYLE3 {font-size: 12px; font-weight: bold; }
.STYLE4 {
	color: #03515d;
	font-size: 12px;
}</style>
    <script>
        function Check() {

            if (document.getElementById("TextBox1").value == "") {
                alert('用户名不能为空');
                return false;
            }

            if (document.getElementById("pwd").value == "") {
                alert('原密码不能为空');
                return false;
            }

            if (document.getElementById("pwd1").value == "") {
                alert('新密码不能为空');
                return false;
            }
            if (document.getElementById("pwd2").value == "") {
                alert('新密码不能为空');
                return false;
            }

            if (document.getElementById("pwd1").value != document.getElementById("pwd2").value) {
                alert('两次输入的密码必须一致');
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td height="30" background="../tab/images/tab_05.gif">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="12" height="30">
                            <img src="../tab/images/tab_03.gif" width="12" height="30" />
                        </td>
                        <td>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="46%" valign="middle">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="5%">
                                                    <div align="center">
                                                        <img src="../tab/../tab/images/tb.gif" width="16" height="16" /></div>
                                                </td>
                                                <td width="95%" class="STYLE1">
                                                    <span class="STYLE3">你当前的位置</span>：[我的系统]-[修改密码]
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td width="16">
                            <img src="../tab/images/tab_07.gif" width="16" height="30" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table width="98%" border="0" cellpadding="2" cellspacing="2" class="tableBorder"
                    align="center" style="margin-bottom: 7px;">
                    <tr>
                        <td class="forumRow" align="right" width="14%">
                            用户名：
                        </td>
                        <td class="forumRow">
                            <asp:Label runat="server" ID="lbName" ForeColor="red"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="forumRow" align="right">
                            修改用户名：
                        </td>
                        <td class="forumRow">
                            <asp:TextBox runat="server" ID="TextBox1" CssClass="input" Width="250px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="forumRow" align="right">
                            原密码：
                        </td>
                        <td class="forumRow">
                            <asp:TextBox runat="server" ID="pwd" CssClass="input" Width="250px" TextMode="Password" autocomplete="off"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="forumRow" align="right">
                            新密码：
                        </td>
                        <td class="forumRow">
                            <asp:TextBox runat="server" ID="pwd1" CssClass="input" Width="250px" TextMode="Password" autocomplete="off"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="forumRow" align="right">
                            再次输入新密码：
                        </td>
                        <td class="forumRow">
                            <asp:TextBox runat="server" ID="pwd2" CssClass="input" Width="250px" TextMode="Password" autocomplete="off"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="forumRow" align="right">
                        </td>
                        <td class="forumRow">
                            <asp:Button Text=" 提 交 " runat="server" ID="Button1" CssClass="button" OnClientClick="return Check()"
                                OnClick="Button1_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>

